<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function array(i) {
      // 返回 JavaScript 中可能的最大数字
      let sum = -Number.MAX_VALUE;
      for (let j of i) {
        sum = Math.max(sum, j.reduce((a, b) => a + b));
      }
      return sum;
    };
    console.log(array([[2, 8, 7], [7, 1, 3], [1, 9, 5]]))
  </script>
</body>

</html>